package com.zhang.Token;

import org.apache.shiro.authc.AuthenticationToken;

public class JwtToken implements AuthenticationToken {

    /**
     * jwt令牌
     */
    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return this.token;
    }

    @Override
    public String getCredentials() {
        return this.token;
    }
}
